JavaScript:object wrapper